<template>
  <div class="badge-box">
    <div class="badge-item">
      <CloudBadge count="5" :offset="offset">
        <div>变更通知</div>
      </CloudBadge>
    </div>
    <div class="badge-item">
      <CloudBadge count="0" show-zero :offset="offset">
        <div>变更通知</div>
      </CloudBadge>
    </div>
    <div class="badge-item">
      <CloudBadge :offset="offset">
        <div>变更通知</div>
        <CloudIcon slot="count" type="clock-circle" style="color: #f5222d" />
      </CloudBadge>
    </div>
  </div>
</template>

<script>
  export default {
    title: '1.基础用法',
    subTitle: '简单的徽章展示，当 count 为 0 时，默认不显示，但是可以使用 showZero 修改为显示。',
    data () {
      return {
        offset: [5, -5]
      }
    },
    methods: {
    }
  }
</script>

<style lang="scss">
  .badge-box {
    display: flex;
  }
  .badge-item {
    padding: 0 20px;
  }
</style>